package com.chinapost.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Ttqsj entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TTQSJ", schema = "YXJF")
public class Ttqsj implements java.io.Serializable {

	// Fields

	private String cid;
	private Tuser tuserByCcreateuserid;
	private Tuser tuserByCuserid;
	private Tdept tdept;
	private Tuser tuserByCmodifyuserid;
	private Tkind tkind;
	private String cbh;
	private Integer csbyf;
	private String ctqrq;
	private String czh;
	private String ckh;
	private String ckhj;
	private Integer ccq;
	private Double cye;
	private Double ctqje;
	private Double ctqjf;
	private Double ctqfy;
	private String czt;
	private String cbz;
	private Timestamp ccreatedate;
	private Timestamp cmodifydate;
	private String cqxr;
	private Double cyjf;

	// Constructors

	/** default constructor */
	public Ttqsj() {
	}

	/** minimal constructor */
	public Ttqsj(String cid) {
		this.cid = cid;
	}

	/** full constructor */
	public Ttqsj(String cid, Tuser tuserByCcreateuserid, Tuser tuserByCuserid, Tdept tdept, Tuser tuserByCmodifyuserid, Tkind tkind, String cbh, Integer csbyf, String ctqrq, String czh, String ckh, String ckhj, Integer ccq, Double cye, Double ctqje, Double ctqjf, Double ctqfy, String czt, String cbz, Timestamp ccreatedate, Timestamp cmodifydate, String cqxr, Double cyjf) {
		this.cid = cid;
		this.tuserByCcreateuserid = tuserByCcreateuserid;
		this.tuserByCuserid = tuserByCuserid;
		this.tdept = tdept;
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
		this.tkind = tkind;
		this.cbh = cbh;
		this.csbyf = csbyf;
		this.ctqrq = ctqrq;
		this.czh = czh;
		this.ckh = ckh;
		this.ckhj = ckhj;
		this.ccq = ccq;
		this.cye = cye;
		this.ctqje = ctqje;
		this.ctqjf = ctqjf;
		this.ctqfy = ctqfy;
		this.czt = czt;
		this.cbz = cbz;
		this.ccreatedate = ccreatedate;
		this.cmodifydate = cmodifydate;
		this.cqxr = cqxr;
		this.cyjf = cyjf;
	}

	// Property accessors
	@Id
	@Column(name = "CID", unique = true, nullable = false, length = 36)
	public String getCid() {
		return this.cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CCREATEUSERID")
	public Tuser getTuserByCcreateuserid() {
		return this.tuserByCcreateuserid;
	}

	public void setTuserByCcreateuserid(Tuser tuserByCcreateuserid) {
		this.tuserByCcreateuserid = tuserByCcreateuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CUSERID")
	public Tuser getTuserByCuserid() {
		return this.tuserByCuserid;
	}

	public void setTuserByCuserid(Tuser tuserByCuserid) {
		this.tuserByCuserid = tuserByCuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CDEPTID")
	public Tdept getTdept() {
		return this.tdept;
	}

	public void setTdept(Tdept tdept) {
		this.tdept = tdept;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CMODIFYUSERID")
	public Tuser getTuserByCmodifyuserid() {
		return this.tuserByCmodifyuserid;
	}

	public void setTuserByCmodifyuserid(Tuser tuserByCmodifyuserid) {
		this.tuserByCmodifyuserid = tuserByCmodifyuserid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CKINDID")
	public Tkind getTkind() {
		return this.tkind;
	}

	public void setTkind(Tkind tkind) {
		this.tkind = tkind;
	}

	@Column(name = "CBH", length = 20)
	public String getCbh() {
		return this.cbh;
	}

	public void setCbh(String cbh) {
		this.cbh = cbh;
	}

	@Column(name = "CSBYF", precision = 8, scale = 0)
	public Integer getCsbyf() {
		return this.csbyf;
	}

	public void setCsbyf(Integer csbyf) {
		this.csbyf = csbyf;
	}

	@Column(name = "CTQRQ", length = 8)
	public String getCtqrq() {
		return this.ctqrq;
	}

	public void setCtqrq(String ctqrq) {
		this.ctqrq = ctqrq;
	}

	@Column(name = "CZH", length = 20)
	public String getCzh() {
		return this.czh;
	}

	public void setCzh(String czh) {
		this.czh = czh;
	}

	@Column(name = "CKH", length = 20)
	public String getCkh() {
		return this.ckh;
	}

	public void setCkh(String ckh) {
		this.ckh = ckh;
	}

	@Column(name = "CKHJ", length = 9)
	public String getCkhj() {
		return this.ckhj;
	}

	public void setCkhj(String ckhj) {
		this.ckhj = ckhj;
	}

	@Column(name = "CCQ", precision = 5, scale = 0)
	public Integer getCcq() {
		return this.ccq;
	}

	public void setCcq(Integer ccq) {
		this.ccq = ccq;
	}

	@Column(name = "CYE", precision = 13)
	public Double getCye() {
		return this.cye;
	}

	public void setCye(Double cye) {
		this.cye = cye;
	}

	@Column(name = "CTQJE", precision = 13)
	public Double getCtqje() {
		return this.ctqje;
	}

	public void setCtqje(Double ctqje) {
		this.ctqje = ctqje;
	}

	@Column(name = "CTQJF", precision = 13)
	public Double getCtqjf() {
		return this.ctqjf;
	}

	public void setCtqjf(Double ctqjf) {
		this.ctqjf = ctqjf;
	}

	@Column(name = "CTQFY", precision = 13)
	public Double getCtqfy() {
		return this.ctqfy;
	}

	public void setCtqfy(Double ctqfy) {
		this.ctqfy = ctqfy;
	}

	@Column(name = "CZT", length = 50)
	public String getCzt() {
		return this.czt;
	}

	public void setCzt(String czt) {
		this.czt = czt;
	}

	@Column(name = "CBZ", length = 100)
	public String getCbz() {
		return this.cbz;
	}

	public void setCbz(String cbz) {
		this.cbz = cbz;
	}

	@Column(name = "CCREATEDATE", length = 11)
	public Timestamp getCcreatedate() {
		return this.ccreatedate;
	}

	public void setCcreatedate(Timestamp ccreatedate) {
		this.ccreatedate = ccreatedate;
	}

	@Column(name = "CMODIFYDATE", length = 11)
	public Timestamp getCmodifydate() {
		return this.cmodifydate;
	}

	public void setCmodifydate(Timestamp cmodifydate) {
		this.cmodifydate = cmodifydate;
	}

	@Column(name = "CQXR", length = 8)
	public String getCqxr() {
		return this.cqxr;
	}

	public void setCqxr(String cqxr) {
		this.cqxr = cqxr;
	}

	@Column(name = "CYJF", precision = 13)
	public Double getCyjf() {
		return this.cyjf;
	}

	public void setCyjf(Double cyjf) {
		this.cyjf = cyjf;
	}

}